package cn.xueden.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;

/**功能描述：用户每日登录时长实体类
 * @author:梁志杰
 * @date:2025/6/8
 * @description:cn.xueden.system.model.entity
 * @version:1.0
 */
@TableName("t_user_daily_login_duration")
@Data
public class UserDailyLoginDuration implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 登录日期
     */
    @TableField("login_date")
    private LocalDate loginDate;

    /**
     * 累积在线秒数
     */
    @TableField("total_seconds")
    private Integer totalSeconds;
}
